package com.yjlove.myplay.utils;

import com.handmark.pulltorefresh.library.ILoadingLayout;
import com.handmark.pulltorefresh.library.PullToRefreshListView;

/**
 * Created by Administrator on 2016/11/29.
 */
public class ListViewUtil {

    public static void setPullToRefreshLable(PullToRefreshListView pullToListView) {
        ILoadingLayout startLoading = pullToListView.getLoadingLayoutProxy(
                true, false);
        startLoading.setPullLabel("下拉刷新");// 刚下拉时显示的提示
        startLoading.setRefreshingLabel("正在刷新中...");// 刷新时显示的提示
        startLoading.setReleaseLabel("释放即可刷新");// 下拉达到一定距离时显示的提示

        ILoadingLayout endLoading = pullToListView.getLoadingLayoutProxy(false,
                true);
        endLoading.setPullLabel("上拉加载更多");// 刚上拉时显示的提示
        endLoading.setRefreshingLabel("拼命加载中...");// 加载时的提示
        endLoading.setReleaseLabel("释放即可加载更多");// 上拉达到一定距离时显示的提示
    }
}
